import {$axios} from "../request.js";
import prefix from "../base.js";

export default {
  getTaxDept() {
    return $axios(`${prefix.tax}/dept`, null, "GET");
  },
  getEnableTax(deptId) {
    return $axios(`${prefix.tax}/enable_tax?deptId=${deptId}`, null);
  },
  getH5Url(){
    return $axios(`${prefix.tax}/h5`, null, "GET");
  },
  getCertInfo(){
    return $axios(`${prefix.tax}/cert_info`, null, "GET");
  },
  getNeedCert(){
    return $axios(`${prefix.tax}/need_cert`, null, "GET");
  },
  syncCert() {
    return $axios(`${prefix.tax}/sync_cert`, null, "POST");
  }
};
